/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../../../assets/styles/base/_colors.scss';
@import '../../../assets/styles/base/_variables.scss';

file-importer {
    display: flex;
    flex-direction: column;

    border: 1px solid $fourth-highlight;
    border-radius: 0.25em;
    margin-bottom: 1em;
    vertical-align: middle;
    color: $primary-text;
    font-size: .9em;
    overflow: hidden;
    position: relative;
    padding: $space-medium;
    justify-content: center;
    align-items: center;
    height: 57px;

    svg {
        margin-right: $space-smedium;
        width: 16px;
        height: 16px;
    }

    .underline {
        text-decoration: underline;
    }

    @include transition(all);

    input[type=file] {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        cursor: pointer;
    }

    &:hover,
    &:focus {
        border: 1px dashed $first-highlight;
    }

    &.expandFile {
        flex: 1;
        height: 200px;
        padding: $space-medium;

        border: 1px dashed $first-highlight;

        svg {
            width: 131px;
            height: 150px;
            margin-right: 0;
        }

        .centre-text {
            text-align: center;
        }
        .max-file-size {
            color: $secondary-text;
        }
    }
}



